Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add zoom in/out and panning [PT-187321155] #52

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

dougmartin
Copy link
Member

To enable zooming and panning the graph was updated to use a single root element which the zoom/pan transformation is applied to. The transformation is also reported to the drawing component so that it can correctly place new nodes or draw the rubberband edge.

To enable zooming and panning the graph was updated to use a single root element which the zoom/pan transformation is applied to.  The transformation is also reported to the drawing component so that it can correctly place new nodes or draw the rubberband edge.
@dougmartin dougmartin requested a review from eireland April 8, 2024 16:14
const nodes = svg
.selectAll("g")
const nodes = root
.selectAll("g.node")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want to select just g here since you're adding the node class to this element?

Copy link

@eireland eireland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment on adding the node class to g.node.
Otherwise, looks good.

Base automatically changed from 187321121-use-single-viewport to master April 8, 2024 18:14
@dougmartin dougmartin merged commit 5408b1a into master Apr 8, 2024
2 checks passed
@dougmartin dougmartin deleted the 187321155-add-zoom branch April 8, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants